package Celcius;

import Listejer.ContainerListener;

import java.awt.Dimension;

import java.awt.Rectangle;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentListener;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Celsius
  extends JFrame
{
  private JLabel jtitre = new JLabel();
  private JTextField convertirInputBox = new JTextField();
  private JLabel celciusLabel = new JLabel();
  private JLabel farhenheitLabel = new JLabel();

  public Celsius()
  {
    try
    {
      jbInit();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }

  private void jbInit()
    throws Exception
  {
    this.getContentPane().setLayout( null );
    this.setSize( new Dimension(400, 300) );
    jtitre.setText("Convertissez vos celcius");
    jtitre.setBounds(new Rectangle(115, 55, 155, 25));
    convertirInputBox.setBounds(new Rectangle(70, 80, 210, 25));
    celciusLabel.setBounds(new Rectangle(65, 135, 60, 40));
    farhenheitLabel.setBounds(new Rectangle(210, 150, 75, 15));
    this.getContentPane().add(farhenheitLabel, null);
    this.getContentPane().add(celciusLabel, null);
    this.getContentPane().add(convertirInputBox, null);
    this.getContentPane().add(jtitre, null);
    
    
    
    EcouteurDeFenetre ec = new EcouteurDeFenetre();
    convertirInputBox.addActionListener(ec);
    
    }
    private class EcouteurDeFenetre implements ActionListener
    {

    public void actionPerformed(ActionEvent e)
    {
      
    }
  }
  }
